package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ProductKcBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ProductKcService extends BaseService<ProductKcBean> {

	ProductKcBean getProductKcBeanById(String id) throws Exception;
	
	void removeProductKcBeanById(String id) throws Exception;
	
	void removeProductKcBeanByIds(String ids) throws Exception;
	
	ProductKcBean saveProductKcBean(ProductKcBean crm) throws Exception;
	
	ProductKcBean updateProductKcBean(ProductKcBean crm) throws Exception;
	
	Page<ProductKcBean>  findProductKcBeanByCond(ProductKcBean bean,
			Page<ProductKcBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveProductKcBeanExt(String sql) throws Exception;

	String findProductKcBeanExtCreate(String tableName) throws Exception;

	String findProductKcBeanExtEdit(String tableName, String id)
			throws Exception;

	String findProductKcBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasProductKcBeanExtData(String tableName, String id)
			throws Exception;
}